package com.testdocs.client.project.event;

import com.google.gwt.event.shared.GwtEvent;
import com.testdocs.client.project.ProjectInfo;

public class ProjectRemovedEvent extends GwtEvent<ProjectRemovedEventHandler>{
	public static Type<ProjectRemovedEventHandler> TYPE = new Type<ProjectRemovedEventHandler>();
	
	private ProjectInfo project;
	
	public ProjectRemovedEvent(ProjectInfo project) {
		this.project = project;
	}
	
	public ProjectInfo getProject() {
		return project;
	}

	@Override
	protected void dispatch(ProjectRemovedEventHandler handler) {
		handler.projectRemoved(this);
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<ProjectRemovedEventHandler> getAssociatedType() {
		return TYPE;
	}

}
